import "babel-polyfill";
import React from 'react';
import ReactDOM from 'react-dom';
import {HashRouter as Router, Route, Switch, Redirect} from 'react-router-dom';

import Home from './pages/Home';
import TestRouter from './pages/test/TestRouter';
import GamesRouter from './pages/games/GamesRouter';

ReactDOM.render((
    <Router>
        <Switch>
            <Route path="/home" component={Home} />
            <Route path="/games" component={GamesRouter} />
            <Route path="/test" component={TestRouter} />
            <Redirect from="/" to="/home" />
        </Switch>
    </Router>
), document.getElementById('app'));
